<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="jp.co.lkg.springsmp.common.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sun.corba.se.impl.javax.rmi.CORBA.Util"%>
<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%> 
<c:set var="webctx" value="${pageContext.request.contextPath}" />
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>商品列表</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="${webctx}/resources/assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="${webctx}/resources/assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="${webctx}/resources/assets/css/amazeui.min.css"/>
<link rel="stylesheet" href="${webctx}/resources/assets/css/admin.css">


<spring:url value="/resources/assets/js/jquery.min.js" var="jquery" />
<script src="${jquery}"></script>
<spring:url value="/resources/assets/js/app.js" var="app" />
<script src="${app}"></script>
<spring:url value="/resources/assets/js/amazeui.min.js" var="amazeui" />
<script src="${amazeui}"></script>
</head>
<body>
<script type="text/javascript">
 
 function showdemo(){
/*  var type=document.getElementById("Type").value; */
 var currPage='${pagelist.currPage+1}';
 var totalPage='${pagelist.totalPage}';
 if(currPage<=totalPage){
 window.location.href="http://localhost:8080/Flower/admin/userlist?&currPage="+currPage;
 }else{
  return false;
 }

}  ;
 function showsyy(){  
 /* 	var type=document.getElementById("Type").value; */
	var currPage='${pagelist.currPage-1}';

 	var totalPage='${pagelist.totalPage}';
 	if(currPage>0){
	 window.location.href="http://localhost:8080/Flower/admin/userlist?currPage="+currPage;
 	}else{
  	return false;
 	} 
	}  ;


</script>





</head>

<body>
<header class="am-topbar admin-header">
  <div class="am-topbar-brand"><img src="${webctx}/resources/assets/i/logo.png"></div>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav admin-header-list">

   <li class="am-dropdown tognzhi" data-am-dropdown>
  <button class="am-btn am-btn-primary am-dropdown-toggle am-btn-xs am-radius am-icon-bell-o" data-am-dropdown-toggle> 消息管理<span class="am-badge am-badge-danger am-round">6</span></button>
  <ul class="am-dropdown-content">
  	
  	
  	
    <li class="am-dropdown-header">所有消息都在这里</li>

    

    <li><a href="#">未激活会员 <span class="am-badge am-badge-danger am-round">556</span></a></li>
    <li><a href="#">未激活代理 <span class="am-badge am-badge-danger am-round">69</span></a></a></li>
    <li><a href="#">未处理汇款</a></li>
    <li><a href="#">未发放提现</a></li>
    <li><a href="#">未发货订单</a></li>
    <li><a href="#">低库存产品</a></li>
    <li><a href="#">信息反馈</a></li>
    
    
    
  </ul>
</li>

 <li class="kuanjie">
 	
 	<a href="#">会员管理</a>          
 	<a href="#">奖金管理</a> 
 	<a href="#">订单管理</a>   
 	<a href="#">产品管理</a> 
 	<a href="#">个人中心</a> 
 	 <a href="#">系统设置</a>
 </li>

 <li class="soso">
 	
<p>   
	
	<select data-am-selected="{btnWidth: 70, btnSize: 'sm', btnStyle: 'default'}">
          <option value="b">全部</option>
          <option value="o">产品</option>
          <option value="o">会员</option>
          
        </select>

</p>

<p class="ycfg"><input type="text" class="am-form-field am-input-sm" placeholder="圆角表单域" /></p>
<p><button class="am-btn am-btn-xs am-btn-default am-xiao"><i class="am-icon-search"></i></button></p>
 </li>




      <li class="am-hide-sm-only" style="float: right;"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main"> 

<div class="nav-navicon admin-main admin-sidebar">
    
    
    <div class="sideMenu am-icon-dashboard" style="color:#aeb2b7; margin: 10px 0 0 0;"> 欢迎系统管理员：<%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername() %></div>
    <div class="sideMenu">
      <h3 class="am-icon-flag"><em></em> <a href="#">商品管理</a></h3>
      <ul>
        <li><a href="http://localhost:8080/Flower/admin/test">商品列表</a></li>
        <li><a href="http://localhost:8080/Flower/admin/toaddgood">添加新商品</a></li>
         <li><a href="http://localhost:8080/Flower/admin/toaddflower">添加新花种</a></li>
        <li><a href="http://localhost:8080/Flower/admin/flowerlist">花种列表</a></li>
       
      </ul>
      <h3 class="am-icon-cart-plus"><em></em> <a href="#"> 订单管理</a></h3>
      <ul>
       <li><a href="http://localhost:8080/Flower/admin/orderlist">订单列表</a></li>
        <li><a href="http://localhost:8080/Flower/admin/privateorderlist">私人定制订单</a></li>
      
      </ul>
      <h3 class="am-icon-users"><em></em> <a href="#">会员管理</a></h3>
      <ul>
        <li><a href="http://localhost:8080/Flower/admin/userlist">会员列表</a> </li>
        <li>未激活会员</li>
        <li>团队系谱图</li>
        <li>会员推荐图</li>
        <li>推荐列表</li>
      </ul>
      
    </div>
    <!-- sideMenu End --> 
    
    <script type="text/javascript">
			jQuery(".sideMenu").slide({
				titCell:"h3", //鼠标触发对象
				targetCell:"ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
				effect:"slideDown", //targetCell下拉效果
				delayTime:300 , //效果时间
				triggerTime:150, //鼠标延迟触发时间（默认150）
				defaultPlay:true,//默认是否执行效果（默认true）
				returnDefault:true //鼠标从.sideMen移走后返回默认状态（默认false）
				});
		</script> 

    
    
    
    
    
    
    
</div>

<div class=" admin-content">
	
		<div class="daohang">
			<ul>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs" onclick="javascript:window.location.href='http://localhost:8080/Flower/admin/main'">首页</button></li>
				<!-- <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">帮助中心<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">奖金管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
				<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">产品管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li> -->
				
				
			</ul>

       

	
</div>
	
	


<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 栏目名称</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">商品列表</a></dl>
      
      <dl>
        <button class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" onclick="javascript:window.location.href='http://localhost:8080/Flower/admin/toaddflower'">添加产品</button>
      </dl>
      
      
    </div>
  <form id="goodForm"  method="post" action="adminForm">
	<div class="am-btn-toolbars am-btn-toolbar am-kg am-cf">
  <ul>
    <li>
  
      <div class="am-btn-group am-btn-group-xs">
      	
     
      </div>
     
    </li>
  </ul>
</div>
   </form>
<form class="am-form am-g">
 <table  class="am-table am-table-bordered am-table-radius am-table-striped">
            <thead>
              <tr class="am-success">
                <th class="table-check"><input type="checkbox" /></th>
                <th class="table-title">序号</th>
                <th class="table-title">用户名</th>
                <th class="table-title">性别</th>
                <!-- <th class="table-title">花种类型</th> -->
                <th class="table-title">出生年月</th>
                <th class="table-title">QQ</th>
                <th class="table-title">邮箱</th>
                <th class="table-title">电话</th>
                <th class="table-title">所在地</th>
                <th class="table-title">用户权限</th>
                <th class="table-title">详细地址</th>
                <th width="163px" class="table-set">操作</th>
              </tr>
            </thead>
	
         
           
            <c:forEach var="item" items="${pagelist.userlist}" varStatus="status">

     	<tbody>
              <tr>
                <td><input type="checkbox" /></td>
                <td>${status.index + 1}</td>
                <td><a href="#">${item.username}</a></td>
           		<td>${item.sex}</td>
                <td>${item.birthday}</td>
                <td>${item.qq}"</td>
                <td>${item.email}</td>
                <td>${item.phone}</td>
                <td>${item.address}</td>
                <td>${item.userstatus}</td>
                <td>${item.addressdetail}</td>
                <td><div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   <%--  <span class="am-icon-pencil-square-o" onclick="location.href='toflowerupdate?id=${item.id}'"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  					<span class="am-icon-trash-o" onclick="location.href='delflower?id=${item.id}'"></span> --%>
                    </div>
                  </div></td>
              </tr>
               </tbody>
          
        </c:forEach>
         <ul class="am-pagination am-fr">
                <li ><a href="http://localhost:8080/Flower/admin/userlist?currPage=1">首页</a></li>
                <li ><a href="javascript:;" onclick="showsyy()" >上一页</a></li>
                <li><a href="javascript:;"  onclick="showdemo()">下一页</a></li>
                <li><a href="#">第${pagelist.currPage}页/共${pagelist.totalPage}页</a></li>
                <li><a href="http://localhost:8080/Flower/admin/userlist?currPage=${pagelist.totalPage}">末页</a></li>
                
        </ul>
         </table>
          </form>
       
           
              
         
        </div>
</div>
</div>
</body>

</html>
          

         
       
